package com.hd.shiro2204.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hd.shiro2204.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService extends IService<User> {

    //注册用户方法
    void register(String username,String password);
    public User findByUserName(String username);
    public List<String> findRoles(User user);
    public List<String> findPermissions(User user);
    List<User> getUsers(@Param("name") String roleName);
    public List<User> getUsersByPerms(String permsName);
}
